define([],function(){
	var tpl = {};

	tpl.address = function(){
		return address();
	}
	tpl.healthy = function(){
		return healthy();
	}
	tpl.creatAuthor = function(){
		return creatAuthor();
	}
	tpl.taskName = function(){
		return schemeNodeName();
	}

	var address = function(){
		return 	'<script id="tpl_commSearch_address" type="text/html">'+
				'	<option value="">全部</option>'+
				'	{{each list as value i}}'+
				'		<option value="{{value}}">{{value}}</option>'+
				'	{{/each}}'+
				'</script>';
	}

	var healthy = function(){
		return 	'<script id="tpl_commSearch_healthy" type="text/html">'+
				'	<option value="">全部</option>'+
				'	{{each list as value i}}'+
				'		<option value="{{value.paramCode}}">{{value.paramValue}}</option>'+
				'	{{/each}}'+
				'</script>';
	}

	var creatAuthor = function(){
		return 	'<script id="tpl_commSearch_creatAuthor" type="text/html">'+
				'	<option value="">全部</option>'+
				'	{{each list as value i}}'+
				'		<option value="{{value.createAuthor}}">{{value.createName}}</option>'+
				'	{{/each}}'+
				'	<option value="1">患者自助</option>'+
				'</script>';
	}

	var schemeNodeName = function(){
		return 	'<script id="tpl_commSearch_taskName" type="text/html">'+
				'	<option value="">全部</option>'+
				'	{{each list as value i}}'+
				'		<option value="{{value.nodeId}}" data-startDay="{{value.startDay}}" data-endDay="{{value.endDay}}">{{value.schemeNodeName}}</option>'+
				'	{{/each}}'+
				'</script>';
	}

	return tpl;
});